(function(TYPES,typeId){
    function my_a(){
        var that = this;
        this.run=function(tansArr){
            var tans = tansArr;
            var mtan = null;
            var area = 0.0;
            for each (var tan in tans) {
                var sarea = ShapeUtils.findArea(tan.getShape(), 0.0);
                if (sarea > area) {
                    area=sarea;
                    mtan=tan;
                };
            };
            return mtan;
        }
    }    TYPES.registerType(typeId,my_a);
})(RULES,"TestRuleLargestTan-1");
